package com.lyj.mall.service;

import com.lyj.mall.pojo.Category;
import com.lyj.mall.vo.CategoryVo;
import com.lyj.mall.vo.ResponseVo;

import java.util.List;
import java.util.Set;

/**
 * @author  lyj
 * @date  2019/11/26 23:09
 */
public interface CategoryService{

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
    /**
     * 查询所有类目
     * */
    ResponseVo<List<CategoryVo>> selectAll();

    Set findSubCategoryId(Integer id, Set<Integer> resultSet);

}
